home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / updates / update16.zoo / include / diffh
Encoding:
Text File  |  1992-03-06  |  7.9 KB  |  300 lines

  1. *** 1.36    1992/01/29 21:08:08
  2. --- PatchLev.h    1992/03/06 19:33:27
  3. ***************
  4. *** 1,5 ****
  5.   
  6. ! #define    PatchLevel "75"
  7.   
  8.   /*
  9.    *
  10. --- 1,5 ----
  11.   
  12. ! #define    PatchLevel "76"
  13.   
  14.   /*
  15.    *
  16. *** 1.10    1991/06/20 02:21:30
  17. --- assert.h    1992/03/06 19:33:27
  18. ***************
  19. *** 45,50 ****
  20. --- 45,54 ----
  21.   #else
  22.   
  23.   
  24. + #ifndef __SOZOBON__
  25. + /* There's a bug in Sozobon 2.0 whereby __LINE__ & __FILE__ are defined but
  26. +  * testing #ifndef __?I?E__ comes out as if they aren't. */
  27.   #ifndef __LINE__
  28.   #define __LINE__ 0
  29.   #endif
  30. ***************
  31. *** 51,56 ****
  32. --- 55,62 ----
  33.   #ifndef __FILE__
  34.   #define __FILE__ "unknown"
  35.   #endif
  36. + #endif /* __SOZOBON__ */
  37.   
  38.   #define assert(cond) \
  39.   if(!(cond)) \
  40. *** 1.3    1991/12/26 16:23:20
  41. --- compiler.h    1992/03/06 19:33:28
  42. ***************
  43. *** 40,47 ****
  44.   #endif
  45.   
  46.   #ifdef __SOZOBON__
  47.   #define void char
  48. !     /* sozobon knows about void, but void * confuses it a bit */
  49.   #define __SIZE_TYPEDEF__ unsigned int
  50.   #define __PTRDIFF_TYPEDEF__ long
  51.   #define __WCHAR_TYPEDEF__ char
  52. --- 40,52 ----
  53.   #endif
  54.   
  55.   #ifdef __SOZOBON__
  56. + /* Doesn't know (void *) is special (but can handle it); this works better. */
  57. + #define __NULL (0L)
  58. + #ifdef OLD_SOZOBON
  59.   #define void char
  60. ! #endif
  61.   #define __SIZE_TYPEDEF__ unsigned int
  62.   #define __PTRDIFF_TYPEDEF__ long
  63.   #define __WCHAR_TYPEDEF__ char
  64. ***************
  65. *** 51,61 ****
  66.   
  67.   /* these are common to all compilers on the ST, I think */
  68.   #define __VA_LIST__ char *
  69. ! #ifdef __MSHORT__
  70. ! #define __NULL ((void *)0)
  71. ! #else
  72. ! /* avoid complaints about misuse of NULL :-)*/
  73. ! #define __NULL (0)
  74.   #endif
  75.   
  76.   #if __STDC__ || defined(__cplusplus)
  77. --- 56,69 ----
  78.   
  79.   /* these are common to all compilers on the ST, I think */
  80.   #define __VA_LIST__ char *
  81. ! #ifndef __NULL
  82. ! #  ifdef __MSHORT__
  83. ! #    define __NULL ((void *)0)
  84. ! #  else
  85. !      /* avoid complaints about misuse of NULL :-)*/
  86. ! #    define __NULL (0)
  87. ! #  endif
  88.   #endif
  89.   
  90.   #if __STDC__ || defined(__cplusplus)
  91. *** 1.10    1992/01/29 21:08:08
  92. --- ctype.h    1992/03/06 19:33:28
  93. ***************
  94. *** 13,19 ****
  95.   extern "C" {
  96.   #endif
  97.   
  98. ! extern    unsigned char    _ctype[];
  99.   
  100.   #define    _CTc    0x01        /* control character */
  101.   #define    _CTd    0x02        /* numeric digit */
  102. --- 13,19 ----
  103.   extern "C" {
  104.   #endif
  105.   
  106. ! extern    unsigned char    *_ctype;
  107.   
  108.   #define    _CTc    0x01        /* control character */
  109.   #define    _CTd    0x02        /* numeric digit */
  110. *** 1.3    1989/03/27 09:12:06
  111. --- file.h    1992/03/06 19:33:30
  112. ***************
  113. *** 1,6 ****
  114. --- 1,20 ----
  115.   #ifndef _FILE_H
  116.   #define _FILE_H
  117.   
  118. + #ifdef __MINT__
  119. + #  ifndef _COMPILER_H
  120. + #  include <compiler.h>
  121. + #  endif
  122. +    /* lockf() comands */
  123. + #  define LOCK_SH    1    /* shared lock */
  124. + #  define LOCK_EX    2    /* exclusive lock */
  125. + #  define LOCK_NB    4    /* non-blocking */
  126. + #  define LOCK_UN    8    /* unlock */
  127. +   __EXTERN int        flock    __PROTO((int, int));
  128. + #endif /* __MINT__ */
  129.   #include <fcntl.h>
  130.   
  131.   #endif /* _FILE_H */
  132. *** 1.24    1992/01/29 21:08:08
  133. --- osbind.h    1992/03/06 19:33:36
  134. ***************
  135. *** 89,94 ****
  136. --- 89,98 ----
  137.   extern "C" {
  138.   #endif
  139.   
  140. + #ifndef _OSTRUCT_H
  141. + #include <ostruct.h>
  142. + #endif
  143.   /* want to skip all the gory details of GNU C inlines??
  144.      search for the string "DEFINITIONS" */
  145.   
  146. ***************
  147. *** 1126,1133 ****
  148.          (void)trap_14_wl((short)(0x20),(long)(ptr))
  149.   #define           Setprt(config)                           \
  150.          (short)trap_14_ww((short)(0x21),(short)(config))
  151. ! #define           Kbdvbase()                           \
  152. !        (void (**)(void))trap_14_w((short)(0x22))
  153.   #define           Kbrate(delay,reprate)                       \
  154.          (short)trap_14_www((short)(0x23),(short)(delay),(short)(reprate))
  155.   #define           Prtblk(pblkptr)                           \
  156. --- 1130,1137 ----
  157.          (void)trap_14_wl((short)(0x20),(long)(ptr))
  158.   #define           Setprt(config)                           \
  159.          (short)trap_14_ww((short)(0x21),(short)(config))
  160. ! #define        Kbdvbase()                                              \
  161. !        (_KBDVECS*)trap_14_w((short)(0x22))
  162.   #define           Kbrate(delay,reprate)                       \
  163.          (short)trap_14_www((short)(0x23),(short)(delay),(short)(reprate))
  164.   #define           Prtblk(pblkptr)                           \
  165. ***************
  166. *** 1214,1223 ****
  167.   #define           Bconctl(opcode,operand)                                 \
  168.          (long)trap_14_wwl((short)(0x2d),(short)(opcode),(long)(operand))
  169.   
  170.   
  171. ! #ifndef _OSTRUCT_H
  172. ! #include <ostruct.h>
  173. ! #endif
  174.   
  175.   #if defined(__cplusplus)
  176.   }
  177. --- 1218,1229 ----
  178.   #define           Bconctl(opcode,operand)                                 \
  179.          (long)trap_14_wwl((short)(0x2d),(short)(opcode),(long)(operand))
  180.   
  181. + /*  Wake-up call for ST BOOK -- takes date/time pair in DOS format. */
  182.   
  183. ! #define           Waketime(w_date, w_time)                    \
  184. !        (void)trap_14_www((short)(0x2f),(unsigned short)(w_date),    \
  185. !                        (unsigned short)(w_time))
  186.   
  187.   #if defined(__cplusplus)
  188.   }
  189. *** 1.1    1992/01/29 21:08:08
  190. --- ostruct.h    1992/03/06 19:33:37
  191. ***************
  192. *** 29,35 ****
  193.   } _DOSTIME;
  194.   
  195.   /* Structure used by Fgetdta(), Fsetdta(), Fsfirst(), Fsnext() */
  196. ! struct _dta {
  197.       char         dta_buf[21];    /* reserved */
  198.       char            dta_attribute;    /* file attribute */
  199.       unsigned short  dta_time;        /* file time stamp */
  200. --- 29,35 ----
  201.   } _DOSTIME;
  202.   
  203.   /* Structure used by Fgetdta(), Fsetdta(), Fsfirst(), Fsnext() */
  204. ! typedef struct _dta {
  205.       char         dta_buf[21];    /* reserved */
  206.       char            dta_attribute;    /* file attribute */
  207.       unsigned short  dta_time;        /* file time stamp */
  208. ***************
  209. *** 36,42 ****
  210.       unsigned short  dta_date;        /* file date stamp */
  211.       long            dta_size;        /* file size */
  212.       char            dta_name[14];    /* file name */
  213. ! };
  214.   
  215.   /* Codes used with Fsfirst() */
  216.   
  217. --- 36,42 ----
  218.       unsigned short  dta_date;        /* file date stamp */
  219.       long            dta_size;        /* file size */
  220.       char            dta_name[14];    /* file name */
  221. ! } _DTA;
  222.   
  223.   /* Codes used with Fsfirst() */
  224.   
  225. *** 1.18    1991/09/24 17:05:40
  226. --- string.h    1992/03/06 19:33:42
  227. ***************
  228. *** 68,76 ****
  229.   __EXTERN int bcmp __PROTO((const void *src, const void *dst, size_t n));
  230.   __EXTERN void bzero __PROTO((void *b, size_t n));
  231.   #ifdef __MSHORT__
  232. ! __EXTERN void lbcopy __PROTO((const void *src, void *dst, long length));
  233. ! __EXTERN int  lbcmp __PROTO((const void *s1, const void *s2, long length));
  234. ! __EXTERN void lbzero __PROTO((void *dst, long length));
  235.   #endif /* __MSHORT__ */
  236.   #endif /* __STRICT_ANSI__ */
  237.   
  238. --- 68,76 ----
  239.   __EXTERN int bcmp __PROTO((const void *src, const void *dst, size_t n));
  240.   __EXTERN void bzero __PROTO((void *b, size_t n));
  241.   #ifdef __MSHORT__
  242. ! __EXTERN void lbcopy __PROTO((const void *src, void *dst, size_t length));
  243. ! __EXTERN int  lbcmp __PROTO((const void *s1, const void *s2, size_t length));
  244. ! __EXTERN void lbzero __PROTO((void *dst, size_t length));
  245.   #endif /* __MSHORT__ */
  246.   #endif /* __STRICT_ANSI__ */
  247.   
  248. *** 1.7    1991/12/26 16:23:20
  249. --- unistd.h    1992/03/06 19:33:44
  250. ***************
  251. *** 37,50 ****
  252.   #if 0
  253.   #define _POSIX_VERSION        0L        /* <- NON-CONFORMING */
  254.   #endif
  255. ! #define _POSIX_CHOWN_RESTRICTED -1        /* doesn't matter anyways */
  256.   #define _POSIX_NO_TRUNC        -1
  257. ! #define _POSIX_VDISABLE        255
  258.   
  259.   /* 1003.1 section 8.2.1.2 */
  260.   #define STDIN_FILENO    0
  261.   #define STDOUT_FILENO    1
  262.   #define STDERR_FILENO    2
  263.   
  264.   __EXTERN __EXITING _exit __PROTO((int));
  265.   __EXTERN int access __PROTO((const char *, int));
  266. --- 37,59 ----
  267.   #if 0
  268.   #define _POSIX_VERSION        0L        /* <- NON-CONFORMING */
  269.   #endif
  270. ! #define _POSIX_CHOWN_RESTRICTED  0        /* doesn't matter anyways */
  271.   #define _POSIX_NO_TRUNC        -1
  272. ! #define _POSIX_VDISABLE         0
  273.   
  274.   /* 1003.1 section 8.2.1.2 */
  275.   #define STDIN_FILENO    0
  276.   #define STDOUT_FILENO    1
  277.   #define STDERR_FILENO    2
  278. + #ifdef __MINT__
  279. +   /* flock() commands */
  280. + #  define F_ULOCK    0    /* unlock */
  281. + #  define F_LOCK    1    /* lock */
  282. + #  define F_TLOCK    2    /* test and lock (non-blocking) */
  283. + #  define F_TEST    3    /* test */
  284. +    __EXTERN int        lockf    __PROTO((int, int, long));
  285. + #endif
  286.   
  287.   __EXTERN __EXITING _exit __PROTO((int));
  288.   __EXTERN int access __PROTO((const char *, int));
  289.